﻿#ifndef UI_UTILITY_H
#define UI_UTILITY_H

#include <QMainWindow>
#include <QtWidgets>

inline QString read_style(const QString& filename)
{
    QFile qssFile(filename);
    qssFile.open(QFile::ReadOnly);
    QString qss;
    if(qssFile.isOpen())
    {
        qss = QLatin1String(qssFile.readAll());
        qssFile.close();
    }
    else
        qDebug() << filename<<" qss not opened";
    return qss;
}

#endif // UI_UTILITY_H
